package com.alan.wifishare.presenter.wifi;

public class NetworkStateObserverManager extends AbsObserverManager<NetworkStateListener> {

	private static NetworkStateObserverManager _instance;
	public static NetworkStateObserverManager getInstance() {
		if (_instance == null) {
			_instance = new NetworkStateObserverManager();
		}
		return _instance;
	}
	
	public void onStatusReport(int type, int state) {
		synchronized (observerList) {
			for (NetworkStateListener stateListener : observerList) {
				stateListener.onStateChanged(type, state);
			}
		}
	}
}
